package com.dkd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * 设备管理对象 tb_vending_machine
 * 
 * @author slj
 * @date 2025-09-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class VendingMachine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String innerCode;

    /** 设备容量 */
    @Excel(name = "设备容量")
    private Long channelMaxCapacity;

    /** 点位Id */
    @Excel(name = "点位Id")
    private Long nodeId;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addr;

    /** 上次补货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上次补货时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastSupplyTime;

    /** 商圈类型 */
    @Excel(name = "商圈类型")
    private Long businessType;

    /** 区域Id */
    @Excel(name = "区域Id")
    private Long regionId;

    /** 合作商Id */
    @Excel(name = "合作商Id")
    private Long partnerId;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private Long vmTypeId;

    /** 设备状态，0:未投放;1-运营;3-撤机 */
    @Excel(name = "设备状态，0:未投放;1-运营;3-撤机")
    private Long vmStatus;

    /** 运行状态 */
    @Excel(name = "运行状态")
    private String runningStatus;

    /** 经度 */
    private Long longitudes;

    /** 维度 */
    private Long latitude;

    /** 客户端连接Id,做emq认证用 */
    @Excel(name = "客户端连接Id,做emq认证用")
    private String clientId;

    /** 策略id */
    @Excel(name = "策略id")
    private Long policyId;

}
